package my.sc.sercice.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import entity.Order;
import my.sc.dao.OrderDao;
import my.sc.sercice.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：Q大侠
 * @date ：Created in 2022/11/18 14:37
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao orderDao;

    @Override
    public int save(Order order) {
        return orderDao.insert(order);
    }

    @Override
    @SentinelResource("aaTest")
    public void aa() {
    }

}
